<template>
    <div class="views-list">
        <div class="views-cont" v-for="(item,index) in viewList" :key="index">
            <a href="javascript:;">
                <div class="news-left">
                    <dl class="news-title">
                        <dt>
                            <img :src="item.release_head" alt="">
                        </dt>
                        <dd>
                            <span>{{ item.release_name }}</span>
                        </dd>
                    </dl>
                    <h3 class="news-tit">{{ item.title }}</h3>
                    <div class="news-view">
                        <div class="read">
                            <span>阅读</span>
                            <span>{{ item.count_read }}</span>
                        </div>
                        <div class="like">
                            <span>赞</span>
                            <span>{{ item.count_like }}</span>
                        </div>
                        <div class="time">
                            <span>{{ item.publish_time }}</span>
                        </div>
                    </div>
                </div>
                <div class="news-right">
                    <div class="right-cont">
                        <img :src="item.cover" alt="">
                    </div>
                </div>
            </a>
        </div>
    </div>
</template>

<script>
export default {
    props: ['viewList'],
}
</script>

<style>
.views-list .views-cont {
    padding-top: 0.3rem;
    padding-bottom: 0.37rem;
    border-bottom: 1px solid rgba(240,242,245,1);
}
.views-list .views-cont a {
    display: flex;
    justify-content: space-between;
    /* align-items: flex-end; */
}
.views-list .views-cont a .news-left {
    width: 4.58rem;
}
.views-list .views-cont a .news-left .news-title {
    display: flex;
}
.views-list .views-cont a .news-left .news-title dt {
    width: 0.6rem;
    height: 0.6rem;
}
.views-list .views-cont a .news-left .news-title dt img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.views-list .views-cont a .news-left .news-title dd {
    margin-left: 0.12rem;
}
.views-list .views-cont a .news-left .news-title dd span {
    font-size: 0.26rem;
    font-family:PingFangSC-Regular;
    font-weight:400;
    color:rgba(120,120,120,1);
    line-height: 0.37rem;
}
.views-list .views-cont a .news-left .news-tit {
    font-size: 0.32rem;
    font-family:PingFangSC-Medium;
    font-weight:500;
    color:rgba(51,51,51,1);
    line-height: 0.45rem;
    height: 0.9rem;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding-top: 0.18rem;
    padding-bottom: 0.22rem;
}
.views-list .views-cont a .news-left .news-view {
    display: flex;
    justify-content: space-between;
}
.views-list .views-cont a .news-left .news-view span {
    font-size: 0.26rem;
    font-family:PingFangSC-Regular;
    font-weight:400;
    color:rgba(176,176,185,1);
    line-height: 0.37rem;
}
.views-list .views-cont a .news-right {
    display: flex;
    flex-direction: column-reverse;
}
.views-list .views-cont a .news-right .right-cont {
    width: 1.8rem;
    height: 1.8rem;
}

</style>
